from google.protobuf.json_format import ParseDict

from coin.proto.coin_request_pb2 import StrategyRequestProto


def convert_strategy_request_from_dict(request_dict):
  assert isinstance(request_dict, dict), request_dict
  request_proto = StrategyRequestProto()
  ParseDict(request_dict, request_proto, ignore_unknown_fields=True)
  return request_proto
